import { get,postRequestBody } from "../utils/request"

export const getAccountsList = () => get("/api/accounts/list");
export const removeAccounts = (id) => get("/api/accounts/delete/"+id);
export const getAccountsInfo = (id) => get("/api/accounts/info/"+id);
export const getAccountsPage = (param) => postRequestBody("/api/accounts/page",param);
export const addAccounts = (param) => postRequestBody("/api/accounts/add",param);
export const updateAccounts = (param) => postRequestBody("/api/accounts/update",param);
export const resetAccountsPassword = (param) => postRequestBody("/api/accounts/reset_password",param);
export const rechargeBondsAccounts = (param) => get("/api/accounts/recharge_bonds?uid="+param.uid+"&recharge_type="+param.recharge_type+"&count="+param.count);
export const resetAccountsCreateRole = (id) => get("/api/accounts/reset_create_role/"+id);
export const setAccountsMaxRole = (id) => get("/api/accounts/set_max_role/"+id);
export const openDungeonAccounts = (id) => get("/api/accounts/open_dungeon/"+id);

